import { createWebHashHistory, createRouter } from 'vue-router'

import Home from '../views/home.vue'
import Form from '../views/form.vue'
import Template from '../views/template.vue'

const routes = [
    { path: '/', component: Home },
    { path: '/form/:name?', component: Form },
    { path: '/template', component: Template },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router